const connect = require('connect')
const http = require('http')
// connect => express=> koa
const app = connect()

app.use((req, res, next) => {
  console.log('connect 1')
  next()
})

app.use((req, res, next) => {
  console.log('connect 2')
  next()
})

app.use((req, res, next) => {
  res.end('connect 3')
})

http.createServer(app).listen(3000, () => {
  console.log('connect listen 3000')
})
